import axios from 'axios';

let base = "/user";

export const requestLogin = params => {
    let url = base.concat("/login");
    return axios.post(url, params);
};

export const requestAddUser = params => {
    let url = base.concat("/register");
    return axios.post(url, params);
};